<?php

namespace app\model;

use think\Model;

class CourseWareFile extends Model
{
    protected $pk = 'id'; // 设置主键
    protected $name = 'course_ware_file'; // 设置表名

    public function list()
    {
        return $this->hasMany(CourseWareFileList::class, 'pid', 'id');
    }
}